<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<c:if test="${InvitationList==null }">				
	<jsp:forward page="/invitation/invitationList" />
</c:if>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>论坛发帖管理系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
   			<div align="center">
  		<h1>帖子列表</h1>
		<table border="1" width="800" id="invitation">
			<tr>
				<td colspan="7" align="center"><a id="sel" href="#">搜索</a></td>
			</tr>
	      	<tr>
	      		<td align="center">标题</td>
	      		<td align="center">内容摘要</td>
	      		<td align="center">作者</td>
	      		<td align="center">发布时间</td>
	      		<td align="center">操作</td>
	      	</tr>
	      	<c:forEach var="inv" items="${InvitationList }">
	      		<tr>
		      		<td align="center">${inv.title}</td>
		      		<td align="center">${inv.summary}</td>
		      		<td align="center">${inv.author}</td>
		      		<td align="center">${inv.delect}</td>
		      		<td align="center"><a href="#">查看回复</a>||<a href="#">删除</a></td>
		      	</tr>
	      	</c:forEach>
	   </table>
	</div>
  </body>
</html>
